package cn.zhentao.controller;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {
    public static final Integer GET_OK=20011;
    public static final Integer GET_ERR=20010;

    public static final Integer ADD_OK=20021;
    public static final Integer ADD_ERR=20020;

    public static final Integer DEL_OK=20031;
    public static final Integer DEL_ERR=20030;

    public static final Integer UPDATE_OK=20041;
    public static final Integer UPDATE_ERR=20040;


    //状态吗
    private Integer code;
    //返回数据
    private Object data;
    //返回提示信息
    private String msg;
}
